var webpack = require('webpack')
var path = require('path')
var common = require('./webpack.common.js')

module.exports = {
  entry: {
    vendor:common.vendor,
    blog: [
    'webpack-dev-server/client?http://localhost:8888',
    'webpack/hot/only-dev-server',
    './app/src/index.js'
    ]
  },
  output: common.extend(common.output,{
    publicPath: 'http://localhost:8888/assets/',
  }),
  resolve: common.resolve,
  module: {
    loaders: common.loaders.concat([
      {
        test: /\.(js|jsx)$/,
        loaders: ['react-hot-loader','babel-loader?stage=0','imports-loader'],
        include: path.join(__dirname, 'app/src'),
        exclude: [path.join(__dirname,'node_modules'),path.join(__dirname,'app/src/vendor')]
      }
    ])
  },
  plugins: common.plugins.concat([
    new webpack.HotModuleReplacementPlugin()
  ]) 
};
